<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	div .item{ display: inline-block;}
	div .item{display: inline;}
</style>
</head>
<body>
-------------------inline----------------------<br>
	<div style="border: solid 1px red; display:  inline; width: 50px;">
		block1 dfsadfasdfaaaaaaaaaaaaaaaaaaaaaagfgsdfgfgrteqdfddddddddddddddddddddddddddddd
	</div>
	<div style="border: solid 1px red; display:  inline; width: 50px;">
		block2 dfdsdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
	</div>
	
<br>--------------------block----------------------<br>
	<div>
		<span style="border: solid 1px red; display: block;">span1</span>
		<span style="border: solid 1px red; display: block;">span2</span>
	</div>
	
<br>--------------------block----------------------<br>
	<div class="item" style="border: 1px solid green; display: inline-block; width: 100px;" >
		block1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
	</div>
	<div class="item" style="border: 1px solid green; display: inline-block; width:100px;">
		block2 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
	</div>
</body>
</html>